Recommend settings file pattern for Claude Code subscription OAuth gateway config - #5818
Open
langsmith-fleet[bot] wants to merge 4 commits into
Open
Recommend settings file pattern for Claude Code subscription OAuth gateway config#5818langsmith-fleet[bot] wants to merge 4 commits into
langsmith-fleet[bot] wants to merge 4 commits into
Conversation
Add a --settings file approach as the recommended way to configure the LLM Gateway for Claude Code subscription OAuth users. Using a named settings file keeps ANTHROPIC_CUSTOM_HEADERS (which embeds the LangSmith API key) out of the shell environment, shell history, and dotfiles. The export-based approach is retained as a fallback.
langsmith-fleet
Bot
requested review from
Florence Morris (fjmorris) and
Kathryn May (katmayb)
September 2, 2026 00:31
added 2 commits
September 2, 2026 00:31
… Claude file permissions - Add recommended/fallback pattern to 'Use Anthropic models only' and 'Route model tiers across providers' sub-sections, matching the structure already added to the OAuth section - Use chmod matching ~/.claude/settings.json permissions (via stat -f) instead of a hardcoded permission mode, across all three examples - Update introductory sentence in workspace provider secret section to reference --settings rather than ~/.claude/settings.json directly
Jacob Lee (jacoblee93)
marked this pull request as ready for review
September 2, 2026 00:36
Jacob Lee (jacoblee93)
approved these changes
Sep 2, 2026
Contributor
|
Mintlify preview branch generated: Site preview: https://langchain-5e9cc07a-preview-docsll-1788309528-e7d1898.mintlify.site Important Preview links may take a few minutes to start working while the deployment finishes. Changed documentation pages (preview deep links): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--settingsfile approach as the recommended way to configure the LLM Gateway~/.claude/langsmith.settings.jsonwithclaude --settingskeepsANTHROPIC_CUSTOM_HEADERS(which embeds the LangSmith API key) out of the shell environment, history, and dotfileschmod 600reminder to restrict file permissionsexportenv var approach is retained as a fallback optionLinks
Verification
Not run; docs-only copy change.
Reviewers
Requested review from: Kathryn May (@katmayb), Florence Morris (@fjmorris)
Supersedes #5817 (which modified the wrong page).